package com.glb.gilibuy.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * order_return_apply
 * @author 
 */
@ApiModel(value="com.glb.gilibuy.entity.OrderReturnApply售后申请表")
@Data
public class OrderReturnApply implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value="id")
    private Long id;

    /**
     * 售后申请id
     */
    @ApiModelProperty(value="售后申请id")
    private String applyId;

    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id")
    private String userId;

    /**
     * 订单id
     */
    @ApiModelProperty(value="订单id")
    private String orderId;

    /**
     * 售后申请类型：0->退货；1->换货；2->仅退款；3->补发；4->维修
     */
    @ApiModelProperty(value="售后申请类型：0->退货；1->换货；2->仅退款；3->补发；4->维修")
    private Integer applyType;

    /**
     * 售后申请原因
     */
    @ApiModelProperty(value="售后申请原因")
    private String applyReason;

    /**
     * 售后申请金额
     */
    @ApiModelProperty(value="售后申请金额")
    private BigDecimal applyPrice;

    /**
     * 售后申请图片(地址)
     */
    @ApiModelProperty(value="售后申请图片(地址)")
    private String applyPics;

    /**
     * 售后处理状态：0->待处理；1->同意；2->失败
     */
    @ApiModelProperty(value="售后处理状态：0->待处理；1->同意；2->失败")
    private Integer applyState;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private Date gmtModified;

    /**
     * 是否被删除：0->否；1->是
     */
    @ApiModelProperty(value="是否被删除：0->否；1->是")
    private Integer isDeleted;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderReturnApply other = (OrderReturnApply) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getApplyId() == null ? other.getApplyId() == null : this.getApplyId().equals(other.getApplyId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getApplyType() == null ? other.getApplyType() == null : this.getApplyType().equals(other.getApplyType()))
            && (this.getApplyReason() == null ? other.getApplyReason() == null : this.getApplyReason().equals(other.getApplyReason()))
            && (this.getApplyPrice() == null ? other.getApplyPrice() == null : this.getApplyPrice().equals(other.getApplyPrice()))
            && (this.getApplyPics() == null ? other.getApplyPics() == null : this.getApplyPics().equals(other.getApplyPics()))
            && (this.getApplyState() == null ? other.getApplyState() == null : this.getApplyState().equals(other.getApplyState()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getApplyId() == null) ? 0 : getApplyId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getApplyType() == null) ? 0 : getApplyType().hashCode());
        result = prime * result + ((getApplyReason() == null) ? 0 : getApplyReason().hashCode());
        result = prime * result + ((getApplyPrice() == null) ? 0 : getApplyPrice().hashCode());
        result = prime * result + ((getApplyPics() == null) ? 0 : getApplyPics().hashCode());
        result = prime * result + ((getApplyState() == null) ? 0 : getApplyState().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", applyId=").append(applyId);
        sb.append(", userId=").append(userId);
        sb.append(", orderId=").append(orderId);
        sb.append(", applyType=").append(applyType);
        sb.append(", applyReason=").append(applyReason);
        sb.append(", applyPrice=").append(applyPrice);
        sb.append(", applyPics=").append(applyPics);
        sb.append(", applyState=").append(applyState);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}